package com.zhongwang.mms.module.half.controller;

import com.zhongwang.mms.base.BaseController;
import com.zhongwang.mms.common.JsonResult;
import com.zhongwang.mms.module.half.service.HBasicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @description:
 * @author: th
 * @time: 2020/5/13 11:25
 */
@Controller
@RequestMapping("/basic/half")
public class HBasicController extends BaseController {

    @Autowired
    private HBasicService HBasicService;

    /**
     * 获取仓库列表
     * @param
     * @return
     */
    @ResponseBody
    @PostMapping("/warehouseInfo")
    public JsonResult warehouseInfo(){

        return jsonResult(HBasicService.getWarInfo());
    }
}
